import Layout from '@/components/layout/index.vue'

export default [
  {
    name: 'author',
    path: '/author',
    redirect: '/author/authorManage',
    component: Layout,
    meta: {
      title: '作者',
      login: true,
      icon: 'author'
    },
    children: [
      {
        name: 'authorManage',
        path: 'authorManage',
        component: () => import(/* webpackChunkName: 'author' */ '@/views/author/authorManage/index'),
        meta: {
          title: '作者列表',
          icon: 'author',
          active: '/author/authorManage'
        }
      },
      {
        name: 'authorDetail',
        path: 'authorDetail',
        component: () => import(/* webpackChunkName: 'author' */ '@/views/author/authorDetail/index'),
        props: route => ({ ...route.query }),
        meta: {
          title: '作者详情',
          icon: 'author',
          hidden: true,
          active: '/author/authorManage'
        }
      }
    ]
  }
]
